<?php echo anchor('', T_($this->name)); ?>

<?php echo form_open('/'.$this->curl.'/common/', 'id="myform" name="myform"')?>
  
<table width="100%" border="0" cellpadding="3" cellspacing="0" id="grid" class="display">
<thead>
<tr>	
	<th><?php echo $this->reports_model->fields['campaigns_count'] ?></th>
	<th><?php echo $this->reports_model->fields['campaigns_activ'] ?></th>	
	<th><?php echo $this->reports_model->fields['campaigns_moder'] ?></th>	
	<th><?php echo $this->reports_model->fields['campaigns_stoped'] ?></th>
	<th><?php echo $this->reports_model->fields['callflows_count'] ?></th>
	<th><?php echo $this->reports_model->fields['adverts_count'] ?></th>	
	<th><?php echo $this->reports_model->fields['adverts_active'] ?></th>	
	<th><?php echo $this->reports_model->fields['adverts_moder'] ?></th>
	<th><?php echo $this->reports_model->fields['advertisers_count'] ?></th>
	<th><?php echo $this->reports_model->fields['users_count'] ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($list as $row): ?>
<tr id="tr_1">
	<td><?php echo T_($row->campaigns_count)?></td>
	<td><?php echo T_($row->campaigns_activ)?></td>
	<td><?php echo T_($row->campaigns_moder)?></td>
	<td><?php echo T_($row->campaigns_stoped)?></td>
	<td><?php echo T_($row->callflows_count)?></td>
	<td><?php echo T_($row->adverts_count)?></td>	
	<td><?php echo T_($row->adverts_active)?></td>
	<td><?php echo T_($row->adverts_moder)?></td>
	<td><?php echo T_($row->advertisers_count)?></td>
	<td><?php echo T_($row->users_count)?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php /*$this->load->view('_elements/query_no_rows', $list);*/ ?>
	
<?php echo form_close()?>

<?php /*echo $this->pagination->create_links('spc');*/ ?>

<script type="text/javascript">
var oTable;

$(document).ready(function() {										
	/* Init DataTables */
	
oTable = $('#grid').dataTable(
	{
		"oLanguage": {
		"sLengthMenu": "Показывать _MENU_ записей на стр.",
		"sZeroRecords": "Нет данных.",
		"sInfo": "От _START_ до _END_ из _TOTAL_ записей",
		"sInfoEmpty": "0 записей",
		"sInfoFiltered": "(filtered from _MAX_ total records)",
		"sSearch": "Искать",
		"oPaginate": {
			"sFirst": "Первая",
			"sLast": "Последняя",
			"sNext": "Вперед",
			"sPrevious": "Back"
			}
		},
		
		"aaSorting": [[ 1, "asc" ]],				
		"aoColumns": [
		  			{ "bSortable": false },
		  			{ "bSortable": false },
		  			{ "bSortable": false },
		  			{ "bSortable": false },
		  			{ "bSortable": false },
		  			{ "bSortable": false },
		  			{ "bSortable": false },
		  			{ "bSortable": false },
		  			{ "bSortable": false },
		  			{ "bSortable": false }
		  		],
															
		"bPaginate": true,
		"bLengthChange": false,
		"bFilter": false,	
		"bSort": true,
		"bInfo": true,
		"bAutoWidth": true,
		"bJQueryUI": true,
		"sPaginationType": "full_numbers",

		"sScrollX": "100%",
		"sScrollXInner": "200%",
		"bScrollCollapse": true		
	});
});	
</script>